package com.itcast.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Commont implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    @TableField("cDate")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date cDate;

    /**
     * 浏览量
     */
    private Integer count;

    /**
     * 评论数
     */
    @TableField("contentCount")
    private Integer contentCount;

    /**
     * 评论人
     */
    private String reviewer;

    /**
     * 评分
     */
    private Integer score;

    /**
     * 商品id
     */
    @TableField("gid")
    private Integer gid;


    /**
     * 评论人id
     */
    @TableField("uid")
    private Integer uid;


}
